/**
 * 
 */
package com.jquery.ui.tags.javascript.button;

import com.jquery.ui.core.base.BaseTag;
import com.jquery.ui.core.bean.UIBean;
import com.jquery.ui.tags.beans.script.ButtonScriptUI;

/**
 * @author linyajun
 * 
 * @date	2013-9-23
 * @description   
 */
public class ButtonTag extends BaseTag {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2834222179062628556L;

	private String onClick;
	
	@Override
	public String getEndTemplate() {
		
		return "button-script.ftl";
	}

	
	@Override
	public String getStartTemplate() {
		
		return null;
	}

	
	@Override
	public UIBean getUiBean() {
		ButtonScriptUI ui=new ButtonScriptUI();
		ui.setOnClick(onClick);
		return ui;
	}


	/**
	 * @return the onClick
	 */
	public String getOnClick() {
		return onClick;
	}


	/**
	 * @param onClick the onClick to set
	 */
	public void setOnClick(String onClick) {
		this.onClick = onClick;
	}

}
